Fixed bug involving mongo throwing error; result.length > 0