just updating the null check to be more consistant with the rest of the code