protect block config from array instead of object when empty