am I a bad person

I recently just broke up with my boyfriend who would always put me down and have a go at me pretty daily and so I've moved on and I'm with someone else but I've just found out I broke up with him when his dad just got cancer and I don't know what to do? Am I a bad person? Help!!