Added check to see if argument is an array.
Updated error texts
Added a check that makes sure that a person contains a key named name.