Refactored destroy and isInView methods