Ensures touches exist.

Encountered an issue today where the array is empty. This change ensures that it has elements before executing code that relies upon them.