Null check for time