Change array check for better aesthetics / reading the code