Custom matcher for element lists