Define and implement a generic static method getFirst that returns the first element of an input array or null in case the array is empty.
The use-case of the method for an integer array:
int[] array = new int[10, 6, 2, 3];
int first = getFirst(array); // 10