changed verification that detects if parent::__construct was not called