I had an upsetting dream the other night about my cat. I dreamed that he passed away in my arms.

As my cat gets older, it's obviously something that is weighing on my subconscious mind. I have some anxiety about when that sad moment will strike our family.

When I was growing up and lost our cat, I remember we buried him in our backyard. I don't mean to sound morbid, but that is definitely something I'd like to do with our cat when our little buddy passes away someday.

I've seen Facebook friends bury ashes of their dogs in their backyards, but I've never heard of someone burying the actual dog in their backyard. In fact, I wasn't even sure if it was legal.

I decided to do some homework.

I searched through Massachusetts state law to see what I could find. Interestingly enough, there are no official laws on the books that either prohibit, condone or offer guidance with the burying of animals.

In fact, any restrictions on burying pets would be determined by town officials, particularly the Board of Health or Animal Control.

Such is the case in New Bedford, according to Animal Control Officer Manny Maciel.

"You're not allowed to bury a pet on your property without permission from the New Bedford Board of Health," Maciel says.

In Fall River, health officials did not require permission, and that city's animal control officer said there would be no issues "as long as you were burying the animal on your own property."

There were no restrictions for Fairhaven and Dartmouth residents, either.

The best bet is to check with the health board and animal control in your town to make sure you are in the clear.

Items Dangerous to Animals That You Have in Your Yard

We spoke with Wild Care Cape Cod Executive Director Stephanie Ellis about the dangers of many everyday yard items and how they can affect the wildlife we know and love. Here are some of the dangers your yard may present to animals and how you can reduce their risk.

LOOK: Here are the pets banned in each state

Because the regulation of exotic animals is left to states, some organizations, including The Humane Society of the United States, advocate for federal, standardized legislation that would ban owning large cats, bears, primates, and large poisonous snakes as pets.

Read on to see which pets are banned in your home state, as well as across the nation.