The absence of certain laws has affected elections in Malaysia to the extent that they were deemed unfair to contesting political parties, said Election Commission (EC) chairperson Abdul Rashid Abdul Rahman today.