Determine whether UIViewController is presented as modal