wouldn't it be better to avoid a negation here by using a boolean with the opposite meaning ? It could be clearer