Generate an array with [deploy, stage]
Handle the deploy being nil