Added isPriceValid method.