More the angular way, less the PHP way