Add better comment to isActive function