public static function getExtension($filename = '', $dot = false)
    {
        if (empty($filename)) {
            return '';
        }
        $exploded_file_name = explode('.', $filename);
        return (strpos($filename, '.') ? ($dot ? '.' : '').end($exploded_file_name) : null);
    }