wrapped notice check in a class