Minimized if statement in form() function.