Updated function "check_concave"