CEO Tim Cook says layoffs are a ‘last resort’ and not something Apple is considering right now