Check if index 0 exists in $matches array