detect if offlive or not