session isDirty nefunguje, nahrazeno isEmpty