Add $key $value support to contains and where methods