Added hasField and subBlock in class Block