Extract isStrictProgram function