Refactor for checking traps