Is this designed to check whether `gestures` in an array? It's a bit cryptic, maybe add to the comment what's going on here. (I didn't know that gestures is supposed to be an array for example).