use remove_instance_variable

instead of doing [nil].first
use `instance_variable_defined?` instead of `defined?`

we already know the type of thing we're looking for
Merge pull request #17 from matthewrudy/avoid-array-caching-hack

Remove Array caching hack