I think your meant to use is_readable() here