Move isBeingPresented/Dismissed check inline