any reason not to combine the 2 into a single if condition?