use has_attribute? instead of respond_to for after_initialize.