Checking issue with coffeescript