Switching from type void to type bool for isBMP function