updated to be coffeescript IF statement?