Fixed parameter check so errors aren't thrown when using CodeKit