Slight improvement in efficiency

- Remove `break` and `$theme` as we can just return directly from the
  `foreach`