This is probably nitpicking but can we reverse these to be:

and ! directory['allow'].include?([ false, 'false', '' ])

Mostly just as I find it confusing to read in reverse. :)