Question: are you lawfully resident in the uk?
Answer: Who is 'lawfully resident'? If you are a British Citizen, have the right of abode or have indefinite leave to enter or remain in the UK you are lawfully resident. If you are 'lawfully resident' in the UK, you still need to meet the other requirements to be 'ordinarily resident' in the UK.