def getNoMappedReadsStrCheck(inFile, outFiles):
    """File from map-reduce steps may carry no data. This is indicated by
    the string 'no_mapped_reads. This must be caught within the wrappers
    to know when not to exit the algorithm required by the wrapper and
    sebsequently exit gracefully. Given and input and output file variable
    name we create a string of bash code that will check for the 'no_mapped-reads'
    string and will print this to the output file if present (to propogate
    the checking behavior)

    Will take array with multiple output files"""
    noMappedCat = ''
    for outFile in outFiles:
        noMappedCat = (noMappedCat + '\techo no_mapped_reads > $' + outFile +
            '\n')
    return ('# Check for empty files/no data here\nif [ "$(head -1 $' +
        inFile + """)" == "no_mapped_reads" ]; then
	echo "$""" + inFile +
        ' contains no mapped reads... exiting" >> $logFile 2>&1\n' +
        noMappedCat + """	rm -rf $tmpDir
	exit 0
else
	echo "$""" + inFile +
        ' contains mapped reads... continuing" >> $logFile 2>&1\nfi\n\n')
