extracted method IsDivisible