added guard to protect against external child access