apache: Refactor weird if block

1 job for master in 47 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #13
docker
test

00:00:47