PHP Fatal error: Can't use method return value in write context
<pre><code>if (isset( $xml-&gt;xpath('/lfm/artist/image[@size="extralarge"]')[0])) {
</code></pre>

<p>PHP Version 5.3 in use (was 5.7 until server dude switched it to 5.3).</p>

<p>On the line at the top we're getting this error:</p>

<pre><code>PHP Fatal error:  Can't use method return value in write context
</code></pre>

<p>I've read a few articles but nothing obvious springs to mind - might be a case of not seeing the wood through the trees.</p>

<p>Any advice on how to get rid of the error other than switching back to 5.7?</p>