Using "if A is not None:" instead of "if A:"

Testing datetime as updated parameter