This doesn't account for ``nil`` or ``false``, should probably be ``if @new_resource.ssh_key && !@new_resource.empty?``.