Improve performance of find() and findFirst() when passed $nodes is empty array