Array key existance check to reduce useless php errors in the logs