Just to be completely bullet-proof, I guess these file reads could also be checked against errors and the function could return false in such case. Sounds reasonable?