Added hasSubProgram method in element class