PHP - Deliberate loose == check and assigning to if statement
Quite so. Except for the trailing comment getting beyond edge. But it can be written in much simpler way anyway.

$medical = $v-&gt;getMedical();
$visitorHasMedical = ($medical &amp;&amp; $medical-&gt;getMedCon());