improved emtpy-check before deciding whether or not an update is needed

Due to the current check on whether or not a value has content (empty($content)), the values false, or the interger 0, won't get saved into the translation table. I fixed this by expanding the check with is_bool and is_int