There's already a built-in min function
Documentation only