Added check to verify if an intent activity is present