Added a helper function to test whether or not a user is an owner of a particular device.