Should return if refcount is 0 or smaller. Not only when refcount == 0
Removed useless braces.