Add hasData method