Fix if statement in medialist.blade.php to show markup correctly