extracting some boolean visibility logic - should move it to notils perhaps ;)