Check for nil instead of falsy, remove debug