Added isEmpty() check to DateTime class