public static function is($mode){
       
        if(is_int($mode) && self::get() == $mode){
             
            return true;
        }
        if(is_string($mode) && self::get() == self::getModeByName($mode)){
            return true;
        }
        return false;
    }
public static function is($mode){
       
        if(is_int($mode) && self::get() == $mode){
             
            return true;
        }
        if(is_string($mode) && self::get() == self::getModeByName($mode)){
            return true;
        }
        return false;
    }
public static function is ( $ mode ) { if ( is_int ( $ mode ) && self :: get ( ) == $ mode ) { return true ; } if ( is_string ( $ mode ) && self :: get ( ) == self :: getModeByName ( $ mode ) ) { return true ; } return false ; }
Check the TAO instance current mode
@example tao_helpers_Mode::is('production')
@param int|string $mode
@return boolean
Check the TAO instance current mode