Checking class-hinted parameters after check if the parameter is not null