fix(Angularjs) WIP - code cleanup

Prepares a single boolean return instead of several if return boolean
statements.

https://github.com/angular/angular.js/issues/4751
Code cleanup
fix(Angular.js): Fix isArrayLike implementation

Convert if-return boolean statements to single boolean return.
Assign boolean conditionals to break up the long boolean return
and avoid repeated calls.
Declare variables at the beginning of function to avoid hoisting errors.
Break long lines into indented and aligned expressions.

https://github.com/angular/angular.js/issues/4751