Added back check to see if target network is available. 
Modified for the case where the API returns no status field.
Merge remote-tracking branch 'origin/master'