Adds nil guard for data hash