This was actually more correct before as it ensures the correct true/false
values are returned. S_ISDIR just ORs out the flag value.