Tweaked checking for successful API-result