src/Functions/AbstractFunctions.php
public function parameterTypeCheck($param, string $type = 'string'): bool
    {
        $type = 'is_'.$type;

        return (bool) ($type($param) && ! empty($param));
    }
public function parameterTypeCheck($param, string $type = 'string'): bool
    {
        $type = 'is_'.$type;

        return (bool) ($type($param) && ! empty($param));
    }
public function parameterTypeCheck ( $ param , string $ type = 'string' ) : bool { $ type = 'is_' . $ type ; return ( bool ) ( $ type ( $ param ) && ! empty ( $ param ) ) ; }
Parameter type check.

@param mixed  $param The input parameter
@param string $type  The type of parameter [bool, float, int, string, array, object]

@return bool

@api
Parameter type check .