Refactor is_not_expire check. Fixed #20.