Checks for an empty array and returns.