Cosmic Encounter Can I attack an empty planet
You absolutely can attack a planet with no defenders.
On page 8 of the rulebook it states:

Defending with Nothing?
Even though a player may no longer have a colony
on one of his or her home planets, that player
must still defend it.

Which certainly confirms that you can attack an unoccupied world.