Help maybe? Better idea?

Because I also have to check on the bullet side whether it hits a ship,
I make a method almost identical to the isHit for the enemy, is there a
better way to implement this?