cache: Use has_key? instead of a __nil string
Code review fixes