Removed casting to bool just before negation.