**Example:**

```
$var = 'post_type_archive';
$name = 'some-archive';
$condition = 'is_'.$var;
if($condition($name)) 

```

Is that considered a big fat no-no? If so, how else could one accomplish something similar?