prevent session persistence when it's empty