implementing more generalized verison of has operation
implementing more generalized select and has property operations