Or, actually, to stay consistent with something later on in the code:

    if (!aria.utils.Type.isDate(date)) { ... }