check for None type