maybe extract the condition in a method or write a comment what is checked here