Added safety check for deer