Update project.rb

updated non-zero checking