Removed unused variables
Fix conditional

Replaced binary operator (&) with boolean operator (&&).