Simplified boolean expressions
Removed unwanted return statement
Simplified boolean expression
Removed redundent null initializer
Simplified return statments
Using a for each instead of iterator
Simplified assignments