credo che possa pure omettere quell inutile enunciato if(a)