change method name to getOrNullIfExpired