Simplified implementation for map based where pred