It isn't necessary to use F_OK when using R_OK or similar.