implement contains operator for array