private function checkDateString($dateTimeString)
    {
        if (empty($dateTimeString)) {
            return null;
        }

        try {
            $date = new \DateTime($dateTimeString);
        } catch (Exception $e) {
            return null;
        }

        return $date;
    }