Added the isValidRange function