This question already has an answer here:
I read content of the file into variable like this
But if the file doesn't exist I get accordingly an error message
bash: somefile: No such file or directory
Is it possible to redirect stderr to >/dev/null without using cat command?