if($conference->hasReleases() || $conference->hasRelive()): ?> $class = ($conference->hasReleases() && $conference->hasRelive()) ? // both enabled 'col-sm-6 col-xs-12' : // only one of both enabled 'col-xs-12'; ?>