return nil after .each (every document is looped through and checked if path matches