Reorder checks from cheap to expensive It makes sense to perform cheap checks at first, because if they already fail we don't waste computing time on more expensive checks. Change-Id: Iac508c190605132d4eecfa2e2a22d30435ecaaf4