Error with if([rev isDir]) instead of ...boolean