Added check for glob returning non arrays