Fixed falsey return values so only undefined and null remove an element.