Added a method to check if the request is expired.