Rename file_is_[readable|writable] to path_is_[readable|writable] as it makes the check for both files and directories.