public static function modified($file, $format = null, $handler = 'date') { if (file_exists($file)) { return !is_null($format) ? $handler($format, filemtime($file)) : filemtime($file); } else { return false; } }