shouldn't this be `$elmToRemove`? any empty jQuery object will always be truthy