public static function isWritable($filePath) { if (!Validator::isFile($filePath)) { throw new IllegalArgumentException(); } return is_writable($filePath); }