try catch NS_ERROR_NOT_AVAILABLE