public static function isImage($file) { return in_array($file->getExtension(), Utility::getKnownImageExtensions()); }