Optimize call to canOpenURL: to improve performance