These methods could be called in any order so need 2 checks in this case.