If you're approaching 50 years old you're at risk for osteoporosis. Osteoporosis means your bones are weaker than they should be and puts you at increased risk for breaking bones, losing height and the health complications that can develop because of those. It's not too early or too late to start changing your lifestyle to improve your bone health even if you already have osteoporosis!
Make sure you're eating enough calcium by eating foods like:
green leafy vegetables
some fruits (oranges, papaya)
dairy (cheese, milk, yogurt)
fortified foods (some breads, cereals)
Mushrooms, egg yolks, fatty fish are all good foods to eat to boost your vitamin d.
Including resistance training and weight bearing exercises in your fitness routine will also help your bones remain strong. Avoid excessive alcohol, smoking cigarettes and be aware of conditions like anorexia and bulimia, inflammatory bowel disease, thyroid disease and certain other conditions that can increase your risk for osteoporosis.