Update .gitignore; use respond_to? instead of defined?