checkStandardFunctionForSafety - not working? see getCodeFragmentSafety instead