protected function timestampHasExpired($ts, $expire)
    {
        if (empty($expire)) {
            return false;
        }
        $diff = time() - $ts;
        if ($diff > $expire) {
            return true;
        }

        return false;
    }