null check on child, as a precaution