return false in val method to consider only first matched element