add isBetween

closes #2087