Check if result is null before looking for _next