private function canBeActivated(Endpoint $newActive)
    {
        // if newActive is currently in error, see if it can be re-enabled
        if ($newActive->isError() === true) {
            $offlineInterval = new \DateTime();
            $offlineInterval->modify('-60 minutes');

            return $newActive->getLastConnected() !== null && $newActive->getLastConnected() <= $offlineInterval;
        }

        return true;
    }