As I understand, ```directory['allow'].include?([ false, 'false', '' ])``` is not correct in ruby. 
As ```directory['allow']``` is likely to be a string, the ```include?``` method only accepts a string as parameter. (Please correct me if I'm wrong here.)
I will however put parentheses around ```directory['allow']``` for clarity's sake.