Simplify if helper and view

cc @ebryn