::YES was missing (or written as ::YES]) rendering those checks void. Turns out some of them actually were wrong.