You are actually checking if the methods exist, why creating them then ?