I wasn't disagreeing, only confirming.
I should also mention that if the OP checks every include against the list of successfully loaded includes, they're looking at O(n^2) performance, not to mention the performance cost of doing so recursively. O(n) isn't the least of the OP's worries.
core coders :D
Such a simple snippet, cheers Jonty!