I'm not sure I understand what it was doing. set_key is a string, right?  Card[set_key].present? maybe?