public static function is($file, $value)
{
if (in_array($value, static::extensions())) {
// check for the extension
return static::extension($file) == $value;
} else {
if (strpos($value, '/') !== false) {
// check for the mime type
return static::mime($file) == $value;
}
}
return false;
}