This is probably something of a shot in the dark, but somewhere between
1.33.1 and 1.37 the behaviour of is_directory() for a non-existent directory changed
from failing (or throwing) in 1.33.1 to simply returning false (1.37).

Can anyone enlighten me when this was. Trac references would be lovely.

Thx

- Rob.