check if result is not None