Very long line, probably best to split into multiline `if else` statment