Changed method name from withData to hasData