protected static function prepareWhere(array $array, $list)
    {
        if (!is_array($list)) {
            $list = [$list];
        }
        foreach ($list as $v) {
            if (array_key_exists($v, $array)) {
                return $v;
            }
        }

        return null;
    }
protected static function prepareWhere(array $array, $list)
    {
        if (!is_array($list)) {
            $list = [$list];
        }
        foreach ($list as $v) {
            if (array_key_exists($v, $array)) {
                return $v;
            }
        }

        return null;
    }
protected static function prepareWhere ( array $ array , $ list ) { if ( ! is_array ( $ list ) ) { $ list = [ $ list ] ; } foreach ( $ list as $ v ) { if ( array_key_exists ( $ v , $ array ) ) { return $ v ; } } return null ; }
Internal function to prepare where list for insertInside.
@param array        $array source array
@param array|string $list  array to convert
@return array
Internal function to prepare where list for insertInside .