In this case, I feel it would be more clear if you use function variable approach.
var myFunk = function(param1) {
if (param1) {
// do stuff
}
}
and I alter this to ...
myFunk = function(param1, param2) {
if (param2) {
// do stuff
}
}
It is now very clear what is happening, and the previous version of function myFunc does not exist anywhere.
edit more info
If you call function(param1, param2) {}
with only one parameter, then typeof param2 == "undefined"
will return true. For example:
myFunk = function(param1, param2) {
if (typeof param2 == "undefined") {
// do stuff with only param1
}
}