There is a space between ! and activities.isEmpty(), can you correct it.