Fixed comprobation in nil attribute