Slight optimization of if clause
Added Code Climate badge