Establish cM and consider in if statement

Avoids errors on content = cM.getValue line