fix redundant checks in destructor #28