You're right about those if statements. Anyway it's advisable to refactor this method.