class SpotifyAPICalls {

	public Device[] getDevices() {
		Device[] devices;
		if (getSpotifyApi() != null && this.userData.getRefreshToken() != null) {
			GetUsersAvailableDevicesRequest getUsersAvailableDevicesRequest = getSpotifyApi().getUsersAvailableDevices()
					.build();
			devices = exceptionHandlingWithResults(getUsersAvailableDevicesRequest::execute);
			if (devices != null)
				return devices;
		}
		return new Device[0];
	}

}