Check filereadable instead of using try/catch.