Add function to check if array contains null