Remove double isDir helper.