Sectorr/Core/Input/Input.php
public static function exists($type = 'post')
    {
        switch ($type) {
            case 'post':
                return (!empty($_POST)) ? true : false;
                break;
            case 'get':
                return (!empty($_GET)) ? true : false;
                break;
            default:
                return false;
                break;
        }
    }
public static function exists($type = 'post')
    {
        switch ($type) {
            case 'post':
                return (!empty($_POST)) ? true : false;
                break;
            case 'get':
                return (!empty($_GET)) ? true : false;
                break;
            default:
                return false;
                break;
        }
    }
public static function exists ( $ type = 'post' ) { switch ( $ type ) { case 'post' : return ( ! empty ( $ _POST ) ) ? true : false ; break ; case 'get' : return ( ! empty ( $ _GET ) ) ? true : false ; break ; default : return false ; break ; } }
Check the given request type exists.

@param string $type
@return bool
Check the given request type exists .