A person is under a duty to prevent harm to another person—
(a) if he or she is under a duty, as mentioned in section 107 to supply a person with the necessaries of health and life;
(b) if he or she is otherwise under a duty, by virtue of any other enactment, or any office or employment, or a lawful order of any Court or person, or agreement or undertaking, to do any act for the purpose of averting harm from the person.