Not sure if this function was supposed to return the pet hash or assign a key to a value. Either way it looks incomplete.