Added check for prior storage of pets and getter/setter for petList