Return value of $wpdb->update() query in plugin is wrong

Changing the comparison operator to == instead of strict comparison === as suggested by @czerspalace, solved the problem because on execution of my update function no rows were updated, so 0(int) was being returned . False is only returned if there is an error.