php validate if function was already declare code example
Example: function exists
function_exists('function_name'); //Will return true if function exists
function_exists('function_name'); //Will return true if function exists