Add guard before deleting partial[attribute]