Question about Android Navigation Bar

Hello all
i would like to ask a rather weird question
Is there a way to tell if the user’s device has a navigation bar or not ?
for example:
Huawei P9 has a Navigation Bar
Samsung Note 7 doesnt have a Navigation Bar because it uses its own built in icons.
Huawei MediaPad T3 has a Navigation Bar
Samsung Tab S doesnt have

Thanks for your time