It checks if the results contains valid data.
In some cases, you can call getError to get more information