Move expires detection log to has() to fix race conditions situations