When I try to take some nonexistent content from page I catch this error:
The current node list is empty. 500 Internal Server Error - InvalidArgumentException <
try { $text = $crawler->filter('.PropertyBody')->eq(2)->text(); } catch (\InvalidArgumentException $e) { // Handle the current node list is empty.. }