Fixes #21 arraySort() Invalid Array Errors

The issue with the arraySort() is that if the array is blank [] then it
will cause arraySort() to thrown an error of an invalid array. [] is not
an invalid array, it's just simply blank.

I've added a conditional check to verify the length of the array is not
0 before attempting to sort it.