Checks if the element at given position in given array of integers is bigger than its two neighbors (when such exist).