A person is lawfully in or on the private property of the owner of a dog within the meaning of this article when an invitee or guest, or when in the performance of a duty imposed upon him by law of the state or United States, or by ordinances of a municipality in which such property is located.
A.R.S. § 11-1026