Try to make the checks in the _init() method of the class.