Simplified containsData method.