public static function q_check(string $table, string $where = ''): bool
    {
        return (bool)self::getInstance()->sql_query('SELECT NULL FROM `' . $table . '`' . ($where ? ' WHERE ' . $where : '') . ' LIMIT 1')->rowCount();
    }
public static function q_check(string $table, string $where = ''): bool
    {
        return (bool)self::getInstance()->sql_query('SELECT NULL FROM `' . $table . '`' . ($where ? ' WHERE ' . $where : '') . ' LIMIT 1')->rowCount();
    }
public static function q_check ( string $ table , string $ where = '' ) : bool { return ( bool ) self :: getInstance ( ) -> sql_query ( 'SELECT NULL FROM `' . $ table . '`' . ( $ where ? ' WHERE ' . $ where : '' ) . ' LIMIT 1' ) -> rowCount ( ) ; }
Check entry exists in DB

@param string $table
@param string $where

@return bool
Check entry exists in DB