use in_array() instead of many if-conditions in helper.php