safe check for cell_max
Merge branch 'master' of https://github.com/rlburkes/roo