Fixed #3 by checking 'parameter is None' instead of 'not parameter'.