Could you rather add it on the array separately in a if(isset()) block so that the key doesn't even get written if there is no data? Given that it's a non-standard field I think it'd be best to avoid "polluting" logs of other users.