check 'is defined' and 'is not none'