@top.zero? is all you need, it will return true or false.