You could do only one if with an "and"