protected static function is_heartbeat() { return isset($_POST['action']) && 'heartbeat' === $_POST['action']; }