cleaned up if unanalysable statement in KmeansAnalysis