marmalade: check for np in class before strcmp