static public function exists($params)
    {
        $query = self::none();
        
        if (ctype_digit((string)$params)) {
            $query->where(['id' => $params]);
        } else {
            if (is_array($params))
                $query->where('id IN (?)', $params);
            else
                $query->where('id IN (?)', func_get_args());
        }
        
        return $query->exists();
    }
static public function exists($params)
    {
        $query = self::none();
        
        if (ctype_digit((string)$params)) {
            $query->where(['id' => $params]);
        } else {
            if (is_array($params))
                $query->where('id IN (?)', $params);
            else
                $query->where('id IN (?)', func_get_args());
        }
        
        return $query->exists();
    }
static public function exists ( $ params ) { $ query = self :: none ( ) ; if ( ctype_digit ( ( string ) $ params ) ) { $ query -> where ( [ 'id' => $ params ] ) ; } else { if ( is_array ( $ params ) ) $ query -> where ( 'id IN (?)' , $ params ) ; else $ query -> where ( 'id IN (?)' , func_get_args ( ) ) ; } return $ query -> exists ( ) ; }
Searches if record exists by id.

How to use:
Model::exists(1);
Model::exists(1, 2, 3);
Model::exists([1, 2, 3]);
Searches if record exists by id .