use === and !==, reverted to array notation , removed some unecesary ;

use === and !==, reverted to array notation , removed some unecesary ;