rest: remove extra if