function even = isEven(a)
%ISEVEN True if given number is even.

%   Author: Damien Teney

if mod(a, 2) == 0
  even = true;
else
  even = false;
end
