I changed the if statement to reflect better syntax style. Thanks to briancain