Make the chained if statement clearer.