If statement for null results, I am going insane