Use a way more elegant solution for checking expressions passed to modifier builder