Delete isdate() and inline its code.