why are you doing this, false should not be a string and you dont need to check @is_successful != nil