Optional chaining for sha256