Handle that return value from contains can be 0