public function validateExtension($filepath) { return in_array(pathinfo($filepath, PATHINFO_EXTENSION), static::$validExtensions, true); }