you might consider renaming `expired` to `is_expired`. I was a little confused about the type of the param when reading the method