Return true if a value is between 2 other values
static bool isBetween(num value, num from, num to) { return from < value && value < to; }