rearrange an if to be less nested

http://manage.dimagi.com/default.asp?79592