Could you add parenthesis to make the logic-flow more clear? (Feel free to drop it in a comment here on GitHub and I can add it when I merge.)