Split function calls to avoid php notice