For what you're doing, booleans is probably the fastest way. At the moment, I can't think of another way to do it…