Core/Validate.php
public static function isZip($input = false) {

        if($input) {

            if(File::isFile($input) && File::extension($input) === 'zip') {

                return true;
            }
        }

        return false;
    }
public static function isZip($input = false) {

        if($input) {

            if(File::isFile($input) && File::extension($input) === 'zip') {

                return true;
            }
        }

        return false;
    }
public static function isZip ( $ input = false ) { if ( $ input ) { if ( File :: isFile ( $ input ) && File :: extension ( $ input ) === 'zip' ) { return true ; } } return false ; }
Check if given input is a ZIP file.
@param string path to file
@return boolean
Check if given input is a ZIP file .