Need to enclose in else statement or null check does nothing