Prevent adding to parent if _layer is null