check if result is empty instead of count < 0