These lines (and in the steps below) could be

````ruby
check  ||= @check
entity ||= @entity
````